﻿.modal.fade(id="alertDlg", tabindex="-1", role="dialog", aria-labelledby="myModalLabel", aria-hidden="true")
	.modal-dialog
		.modal-content
			.modal-header
				.btn.btn-default.close(data-dismiss="modal", aria-hidden="true") &times;
				h4.modal-title(id="myModalLabel")
			.modal-body
			.modal-footer
				.btn.btn-default(data-dismiss="modal") 确认
script(type="text/javascript").
	function showModal() {
		var title,msg;
		if (arguments.length > 1) {
			title = arguments[0] || "系统提示";
			msg = arguments[1] || "";
		} else {
			title = "系统提示";
			msg = arguments[0] || "";
		}
		$('#alertDlg').find(".modal-title").html(title);
		$('#alertDlg').find(".modal-body").html(msg);
		$('#alertDlg').modal();
	}